import VueAxiosPlugin from "vue-axios-plugin";

Vue.use(VueAxiosPlugin, {
    // 请求拦截处理
    reqHandleFunc: config => config,
    reqErrorFunc: error => {
        console.log(">>>>reqErrorFunc")
        Promise.reject(error);
    },
    // 响应拦截处理
    resHandleFunc: response => {
        console.log(">>>>response")
        return response;
    },
    resErrorFunc: error => {
        console.log(">>>>resErrorFunc")
        return Promise.reject(error)
    }
});

